package cn.as142.service.impl;

import cn.as142.pojo.Users;
import cn.as142.service.UserService;
import org.springframework.stereotype.Service;

/**
 * @Author XiaoMo
 * @Date 2022/3/3 11:22
 * @Version 1.0
 */
@Service
public class UserServiceImpl implements UserService {

    @Override
    public String login(Users users) {
        if ("zs".equals(users.getUsername()) && "123".equals(users.getPassword())) {
            return "ok";
        }
        return "false";
    }
}
